﻿//++
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Module Name:
//
//  NotificationReadyEventArgs.cs
//    
// Abstract:
//
//  This module implements the NotificationReadyEventArgs class. This class encapsulates the NotificationItem that is about to be delivered.
//  
//--

using System;
using System.Diagnostics;

namespace Microsoft.EnhancedReminders.Scheduler
{
    /// <summary>
    /// This class encapsulates the NotificationItem that is about to be delivered.
    /// </summary>
    public class NotificationReadyEventArgs : EventArgs
    {
        NotificationItem _notificationItem;

        /// <summary>
        /// ctor.
        /// </summary>
        /// <param name="notificationItem">Notification about to be delivered</param>
        public NotificationReadyEventArgs(NotificationItem notificationItem)
        {
            Debug.Assert(notificationItem != null, "notificationItem != null");

            _notificationItem = notificationItem;
        }

        /// <summary>
        /// Returns the notification about to be delivered.
        /// </summary>
        public NotificationItem NotificationItem
        {
            get
            {
                return _notificationItem;
            }
        }
    }
}
